<?php
namespace Admin\Controller;
use Think\Controller;
use Think\Auth;
Class BaseController extends Controller{
    function _initialize(){
        if(!isset($_COOKIE['adminid'])){
            $this->redirect('Admin/Login/login');
        }

        $AUTH = new Auth();
        /*if(!$AUTH->check(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME,$_SESSION['admin_id'])){
            echo '<script>location.href="'.U('Admin/Login/check_error').'"</script>';
        }*/
    }
}